﻿<%@ Page Title="" Language="C#" MasterPageFile="../Shared/Create.Master" Inherits="System.Web.Mvc.ViewPage<Longtop.Web.WebSite.Admin.Labels.CreateModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <tr>
        <td>
            <%= Html.LabelFor(m=>m.Model.Text)%>
        </td>
        <td>
            <%= Html.TextBoxFor(m=>m.Model.Text)%>
            <%= Html.ValidationMessageFor(m=>m.Model.Text) %>
        </td>
    </tr>
    <tr>
        <td>
            <%= Html.LabelFor(m=>m.Model.ClassId)%>
        </td>
        <td>
            <%Html.RenderAction("selector", "labels", new { name = "classId", LableId = Model.Model.LableId, ClassId = Model.Model.ClassId }); %>
            <%= Html.ValidationMessageFor(m=>m.Model.ClassId)%>
        </td>
    </tr>
    <%if (Roles.IsUserInRole("system")) { %>
    <tr>
        <td>
        </td>
        <td>
            <label>
                <%=Html.CheckBox("AllowCreateChild",Model.Model.AllowCreateChild)%>
                <%= Html.LabelFor(m=>m.Model.AllowCreateChild)%></label>
            <%= Html.ValidationMessageFor(m => m.Model.AllowCreateChild)%>
        </td>
    </tr>
    <%} %>
    <tr>
        <td>
            <%=Html.LabelFor(m=>m.Model.EditorView)%>
        </td>
        <td>
            <%=Html.TextBoxFor(m=>m.Model.EditorView)%>
            <%= Html.ValidationMessageFor(m => m.Model.EditorView)%>
        </td>
    </tr>
    <tr>
        <td>
            <%=Html.LabelFor(m=>m.Model.ListView)%>
        </td>
        <td>
            <%=Html.TextBoxFor(m=>m.Model.ListView)%>
            <%= Html.ValidationMessageFor(m => m.Model.ListView)%>
        </td>
    </tr>
</asp:Content>
